home *** CD-ROM | disk | FTP | other *** search
- This is speaking of the access privileges granted when a class declares a friend. The access privilege of friendship is not inherited:
-
- * I may trust you, but I don't necessarily trust your kids.
- * My friends aren't necessarily friends of my kids.
- * Class 'Base' declares f() to be a friend, but f() has no special access rights with class 'Derived'.
-
- The access privilege of friendship is not transitive:
- * I may trust you, and you may trust Sam, but that doesn't necessarily mean that I trust Sam.
- * A friend of a friend is not necessarily a friend.